//
//  StatusCellBottomView.swift
//  WeiBo09
//
//  Created by 裘明 on 15/9/12.
//  Copyright © 2015年 qm. All rights reserved.
//

import UIKit

///  微博底部视图
class StatusCellBottomView: UIView {
    
    
     // MARK: - 搭建界面
    override init(frame: CGRect) {
        super.init(frame: frame)
        
        setupUI()
    }

    required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
        
        setupUI()
    }
    
    // 设置界面
    private func setupUI() {
        backgroundColor = UIColor(white: 0.95, alpha: 1)
        // 1.添加控件
        addSubview(forwardButton)
        addSubview(commonButton)
        addSubview(likeButton)
        
        // 2.设置约束
        ff_HorizontalTile([forwardButton, commonButton, likeButton], insets: UIEdgeInsetsZero)
        
    }
    
    // MARK: - 懒加载控件
    /// 转发
    private lazy var forwardButton: UIButton = UIButton(title: " 转发", imageName: "timeline_icon_retweet", titleColor: UIColor.darkGrayColor(), fontSize: 13)
    /// 评论
    private lazy var commonButton: UIButton = UIButton(title: " 评论", imageName: "timeline_icon_comment", titleColor: UIColor.darkGrayColor(), fontSize: 13)
    /// 赞
    private lazy var likeButton: UIButton = UIButton(title: " 赞", imageName: "timeline_icon_unlike", titleColor: UIColor.darkGrayColor(), fontSize: 13)
}
